package com.gs.dao.jdbc.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.gs.bean.Customer;

public class CustomerRowMapper implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		Customer customer = new Customer();
		customer.setId(rs.getInt("id"));
		
		customer.setLogo(rs.getString("customer_logo"));
		customer.setName(rs.getString("customer_name"));
		customer.setDescribe(rs.getString("customer_describe"));
		
		return customer;
	}

}
